package commonInfrastructure.communication;

import entity.Message;
import java.util.List;
import javax.ejb.Remote;

@Remote
public interface MessageSessionRemote {

    List<Message> getAllUnread(Long staffIDTo);

    //Get all message froo A to B, sort from newest to oldest
    List<Message> getMessage(Long staffIDFrom, Long staffIDTo);

    Long sendMessage(Long staffIDFrom, Long staffIDTo, String message);

    void setRead(Long messageID);
    
    void deleteMessage(Long id);
    
}
